﻿using durable.xml.ConfigProvider;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Durable
{
    public partial class test : Form
    {
        public test()
        {
            InitializeComponent();
        }
        XmlProvider xml = new XmlProvider();
        private void button1_Click(object sender, EventArgs e)
        {
            Dictionary<string, string> listConfig = new Dictionary<string, string>();
            listConfig.Add("code", Guid.NewGuid().ToString("N"));
            listConfig.Add("id", textBox1.Text);
            listConfig.Add("Caliber", textBox2.Text);
            listConfig.Add("flow",textBox3.Text);
            xml._XmlAPIPath = AppDomain.CurrentDomain.BaseDirectory + "/Config/CustomCheckInfo.xml";
            xml.Insert(listConfig);
        }
    }
}
